package com.beesphere.products.throttling;

import java.io.Serializable;

public interface ThrottlingAgent extends Serializable {
	String SYS_THROTTLER 	= "SystemThrottler";
	String SHARED_THROTTLER = "SharedThrottler";
	
	Throttler lookup (UnitOfWork uow) throws Exception;
	UnitOfWorkCapacity capacityFor (UnitOfWork uow) throws Exception;
	Throttler register (String id, UnitOfWorkCapacity capacity) throws Exception;
	void shutdown ();
}
